import React, { useState } from 'react'
import { Form, Input, Radio, Select, Spin } from 'antd';


export default function Step1({ selectPlatform, changePlatform }) {
  const platformMap = {
    ao: '辅营产品子平台',
    // fw: '服务赔偿子平台',
    // xc: '行查系统子平台',
    // gb: '贵宾厅管理子平台'
  }
  const radioStyle = {
    display: 'block',
    height: '30px',
    lineHeight: '30px',
  };
  return (
    <section>
      <Radio.Group
        onChange={(e) => { changePlatform(e.target.value) }}
        value={selectPlatform}>
        {
          Object.keys(platformMap).map((item, index) => (
            <Radio style={radioStyle} value={item} key={index}>
              {platformMap[item]}
            </Radio>
          ))
        }
      </Radio.Group>
    </section>
  )
}
